package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.util.Date;
import java.util.Date;
import com.mdd.common.validator.annotation.IDMust;

/**
 * APP版本更新参数
 * @author DEREK
 */
@Data
@ApiModel("APP版本更新更新参数")
public class AppVersionUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @NotNull(message = "clientType参数缺失")
    @ApiModelProperty(value = "类型 1=APP 2=小程序 3=h5")
    private Integer clientType;

    @NotNull(message = "versionCode参数缺失")
    @ApiModelProperty(value = "版本code")
    private Integer versionCode;

    @NotNull(message = "versionName参数缺失")
    @ApiModelProperty(value = "版本name")
    private String versionName;

    @ApiModelProperty(value = "文件路径")
    private String path;

    @NotNull(message = "content参数缺失")
    @ApiModelProperty(value = "更新内容")
    private String content;

    @NotNull(message = "isForce参数缺失")
    @ApiModelProperty(value = "强制升级开关，0否，1是")
    private Integer isForce;

    @ApiModelProperty(value = "修改时间")
    private Date updtaeTime;

}
